﻿using System;

namespace SceneManager.Components
{
	public class MissingComponentException : Exception
	{
		#region Constructors

		public MissingComponentException(Type componentType)
			: base(string.Format("The {0} component could not be found.", componentType.Name))
		{
			ComponentType = componentType;
		}

		#endregion

		#region Properties

		public Type ComponentType { get; private set; }

		#endregion
	}
}